
package com.moji.cyg.biz.shop;

import org.mybatis.spring.support.SqlSessionDaoSupport;

import com.moji.cyg.biz.area.AreaModel;

/**
 * 类${file_name}的实现描述：TODO 类实现描述 
 *
 * @author paul.gaol
 * @date  2012-3-6
 *
 */
public class ShopDAO extends SqlSessionDaoSupport{
    private static final String NAMESPACE = AreaModel.class.getName();

    public void createShop(Shop shop){
    	getSqlSession().insert(NAMESPACE + ".createShop", shop);
    }
    
    public Shop getShopByCode(String shopCode) {
        return (Shop) getSqlSession().selectOne(NAMESPACE + ".getShopByCode", shopCode);
    }

}
